home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS in a Box 7
/
BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso
/
Files
/
Prog
/
M
/
MacOberon241.cpt
/
MacOberon 2.4(1)
/
Hex.Tool
(
.txt
)
< prev
next >
Wrap
Oberon Text
|
1991-10-17
|
2KB
|
38 lines
Syntax10.Scn.Fnt
Syntax10i.Scn.Fnt
Hex.Open ^
Hex.Open ~
-----------------------------------------------------------
File inspector / editor (cas 8-Aug-90)
Displays arbitrary files in three columns: relative address (position in file),
numerical dump, and ASCII dump. Bases of address and numerical
columns (default is hexadecimal) and the formatting of the numerical
column can be set. Inspection of open files appearing as addresses within
Trap viewers is possible.
Hex.Open follows the usual parameter conventions and also accepts any
of the following options (in any order; lower case option selector are ok):
/A <integer> base for addresse column (default 16)
/B <integer> base for numeric column (default 16)
/L <integer> bytes per line (default 16)
/G <integer> bytes per group (default 4)
Additionally, Hex.Open takes integers instead of names as main
parameter. Such an integer is interpreted as the address of a file and
thereby inspection of opened files is possible. This is mainly useful for
inspection of files referenced in a Trap viewer.
In the menu bar two additional commands are available:
Hex.Search performs a textual search in the ASCII column; otherwise like
Edit.Search. Hex.Store writes an edited file back to disk. Warning: the
file editor does not automatically generate backup file copies!
When copying selected stretches in a file editor viewer, the semantics of
what is copied are different depending on the selection begin and end.
If begin and end of the selection cover digits in the numerical column,
only part of the numerical column (no addresses and no ASCII parts) are
copied. Likewise, if begin and end of the selection cover characters in
the ASCII column, only part of the ASCII column is copied. For all other
cases, the whole selction is copied.
When deleting using the mouse right-left interclick, the selection rules
apply. Numeric selections cause deletion to zero, ASCII selections cause
deletion to blanks.
Cursor, TAB, CR, LF, BS, and DEL keys are supported. The caret is always
forced to legal positions.